package pro.shushi.pamirs.hr.api;

import org.springframework.stereotype.Component;
import pro.shushi.pamirs.boot.base.ux.annotation.action.UxRoute;
import pro.shushi.pamirs.boot.base.ux.annotation.navigator.UxHomepage;
import pro.shushi.pamirs.business.api.BusinessModule;
import pro.shushi.pamirs.core.common.CommonModule;
import pro.shushi.pamirs.file.api.FileModule;
import pro.shushi.pamirs.hr.api.model.org.Corporation;
import pro.shushi.pamirs.meta.annotation.Module;
import pro.shushi.pamirs.meta.base.PamirsModule;
import pro.shushi.pamirs.meta.common.constants.ModuleConstants;
import pro.shushi.pamirs.user.api.UserModule;

@Component
@Module(
        name = HrSimpleModule.MODULE_NAME,
        displayName = "HR示例标准版",
        version = "1.0.0",
        priority = 1,
        dependencies = {ModuleConstants.MODULE_BASE,
                CommonModule.MODULE_MODULE,
                UserModule.MODULE_MODULE,
                BusinessModule.MODULE_MODULE,
                FileModule.MODULE_MODULE,
        }
)
@Module.module(HrSimpleModule.MODULE_MODULE)
@Module.Advanced(selfBuilt = true, application = true)
@UxHomepage(@UxRoute(model = Corporation.MODEL_MODEL))
public class HrSimpleModule implements PamirsModule {

    public static final String MODULE_MODULE = "hr_simple";

    public static final String MODULE_NAME = "HrSimple";

    @Override
    public String[] packagePrefix() {
        return new String[]{
                "pro.shushi.pamirs.hr"
        };
    }
}